<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p3_CSS常用值</title>
    <style>
        h1{
            /*单词表示法*/
            color: red;
            /*rgb(rgd,green,blue)表示法*/
            color:rgb(255,0,0);
            color:rgb(0,255,255);
            color:rgb(0,255,0);
            color:rgb(255,0,255);
            color:rgb(0,0,255);
            color:rgb(255,255,0);
            color:rgb(0,0,0);
            color:rgb(255,255,255);
            color:rgb(128,128,128);
            /*十六进制表示法 0~9 A~F */
            color:#ff0000;
            color:#00ff00;
            color:#0000ff;
            color:#000000;
            color:#ffffff;
            /*十六进制简写表示法 0~9 A~F */
            color:#f00;
            color:#0f0;
            color:#00f;
            color:#000;
            color:#fff;
            color:#909090;
            /*带不透明的颜色
            rgba(r,g,b,alpha) 值1完全不透明 0透明到看不见 0.5半透明 */

            color:rgba(255,0,0,1);
            color:rgba(255,0,0,0.8);
            color:rgba(255,0,0,0.4);
            color:rgba(255,0,0,0.2);
            color:rgba(255,0,0,.1);
            color:rgba(255,0,0,0);
        }
        .d1{
            width: 500px;
            height: 300px;
            /*渐变色:角度值(单位为deg),颜色1,颜色2...*/
            background-image: linear-gradient(30deg,red,cyan);
        }
        .d2{
            width:50px;
            height:100px;
            /*插入背景图*/
            background-image: url(img/mr.png);
            /*调整背景图的尺寸:宽度 高度 */
            background-size: 50px 100px;
            background-color: #000;
        }
        .d3{
            width: 500px;
            height: 300px;
            border: 5px solid #f00;
            background-image: url(img/mr.png);
            background-repeat: no-repeat;
            background-position: 0 0;
            background-position: -50px 0;
            background-position: 0 50px;
            background-position: 50px -50px;
            background-position: 50% 50%;
            background-position: 100% 100%;
            background-position: center center;
            background-position: center;
        }
    </style>
</head>
<body>
    <h1>测试文字</h1>
<!--    .d*3 Tab补全 -->
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
</body>
</html>